package com.ruoyi.content.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 课程主表对象 content
 * 
 * @author ruoyi
 * @date 2025-10-10
 */
public class Content extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 内容ID */
    private Long id;

    /** 内容标题 */
    @Excel(name = "内容标题")
    private String title;

    /** 所属分类ID */
    @Excel(name = "所属分类ID")
    private Long categoryId;

    /** 内容类型 */
    @Excel(name = "内容类型")
    private String type;

    /** 讲师ID */
    @Excel(name = "讲师ID")
    private Long lecturerId;

    /** 机构ID */
    @Excel(name = "机构ID")
    private Long orgId;

    /** 封面图URL */
    @Excel(name = "封面图URL")
    private String cover;

    /** 简介 */
    @Excel(name = "简介")
    private String intro;

    /** 详细说明 */
    @Excel(name = "详细说明")
    private String detail;

    /** 是否免费 */
    @Excel(name = "是否免费")
    private Integer isFree;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 总时长（分钟） */
    @Excel(name = "总时长", readConverterExp = "分=钟")
    private Long duration;

    /** 浏览量 */
    @Excel(name = "浏览量")
    private Long viewCount;

    /** 销量 */
    @Excel(name = "销量")
    private Long saleCount;

    /** 状态（1正常/0下架） */
    @Excel(name = "状态", readConverterExp = "1=正常/0下架")
    private Integer status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }

    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }

    public void setLecturerId(Long lecturerId) 
    {
        this.lecturerId = lecturerId;
    }

    public Long getLecturerId() 
    {
        return lecturerId;
    }

    public void setOrgId(Long orgId) 
    {
        this.orgId = orgId;
    }

    public Long getOrgId() 
    {
        return orgId;
    }

    public void setCover(String cover) 
    {
        this.cover = cover;
    }

    public String getCover() 
    {
        return cover;
    }

    public void setIntro(String intro) 
    {
        this.intro = intro;
    }

    public String getIntro() 
    {
        return intro;
    }

    public void setDetail(String detail) 
    {
        this.detail = detail;
    }

    public String getDetail() 
    {
        return detail;
    }

    public void setIsFree(Integer isFree) 
    {
        this.isFree = isFree;
    }

    public Integer getIsFree() 
    {
        return isFree;
    }

    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }

    public void setDuration(Long duration) 
    {
        this.duration = duration;
    }

    public Long getDuration() 
    {
        return duration;
    }

    public void setViewCount(Long viewCount) 
    {
        this.viewCount = viewCount;
    }

    public Long getViewCount() 
    {
        return viewCount;
    }

    public void setSaleCount(Long saleCount) 
    {
        this.saleCount = saleCount;
    }

    public Long getSaleCount() 
    {
        return saleCount;
    }

    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("categoryId", getCategoryId())
            .append("type", getType())
            .append("lecturerId", getLecturerId())
            .append("orgId", getOrgId())
            .append("cover", getCover())
            .append("intro", getIntro())
            .append("detail", getDetail())
            .append("isFree", getIsFree())
            .append("price", getPrice())
            .append("duration", getDuration())
            .append("viewCount", getViewCount())
            .append("saleCount", getSaleCount())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
